-
Notifications
You must be signed in to change notification settings - Fork 0
Add Anchor examples basic #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
29fe205 to
ee3f30f
Compare
| pub mod light_token_anchor_transfer_interface { | ||
| use super::*; | ||
|
|
||
| pub fn transfer(ctx: Context<TransferAccounts>, amount: u64, decimals: u8) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wont work with spl or t22 only light to light.
Pls extend so that it works with any token
e389743 to
09acd52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic instruction examples: approve, burn, close, create-ata, create-mint, create-token-account, freeze, mint-to, revoke, thaw, transfer-checked, transfer-interface. Basic macro examples: counter, create-ata, create-mint, create-token-account, create-and-transfer with token-transfer.
09acd52 to
6caa10b
Compare
Summary
programs/anchor/workspace with basic SPL token instruction examplesbasic-instructions/- approve, burn, close, create-ata, create-mint, create-token-account, freeze, mint-to, mint-to-checked, revoke, thaw, transfer-checked, transfer-interfacebasic-macros/- counter, create-ata, create-mint, create-token-accountTest plan
cargo test-sbfin each program directorycargo build-sbf